from tkinter import*
x=int(input('Введите координату x'))
y=int(input('Введите координату y'))
f=int(input('Кофицент увеличения'))

if 500>=x>=0 and 500>=y>=0 and f==0:
    pass
elif 0*f+x>=0 and 30*f+x<=500 and 0*f+y>=0 and 20*f+y<=500 and f>0:
    pass
elif 0*f+x>=0 and 30*f+x<=500 and 0*f+y>=0 and 20*f+y<=500 and f<0:
    pass
else:
    print('Размер фигуры привышает максимальный размер')
    exit()
root=Tk()
root.title('ИТ-Марафон')
canvas=Canvas(root,width=500,height=500,bg='white')
canvas.pack()
canvas.create_polygon(x+0*f,y+0*f,x+10*f,y+0*f,x+10*f,y+10*f,x+20*f,y+10*f,x+20*f,y+0*f,x+30*f,y+0*f,x+30*f,y+20*f,x+0*f,y+20*f,fill='green',width=1)
root.mainloop()